package com.imau.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.imau.bean.Permission;
import com.imau.bean.Role;

import java.util.Set;

public interface RoleService {

    int save(Role role);

    int deleteById(String id);

    Role findById(String id);


    IPage<Role> queryListByPagte(Role role, int currentPage, int size);

    int updateRole(Role role);



    /**分配权限服务*/
    int assignPermission(String rid, Set<Permission> permissions);
int assignPermission(String rid, String[] perids);
    /**取消权限服务*/
    int unAssignPermission(String rid);
}
